'use strict';
/**
 * model
 */
export default class extends think.model.base {
	async userList(map){
		let table_sql = await this.order('id desc').buildSql();
		let sql = await this.group("openid").where(map).buildSql();
		var tablename = this.getTableName();
		sql = sql.replace("`"+tablename+"`",table_sql+" m ");
		let data = await this.query(sql);
		return data;
	}
}